Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#6302] refactor:Optimize Flink connector properties converter #6303

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sunxiaojian
Copy link
Contributor

What changes were proposed in this pull request?

  • Unified params format, add flink.bypass. prefix, especially Iceberg.
  • Extract the flink.bypass. logic to the PropertiesConverter, and the extension logic does not care about this operation

Why are the changes needed?

Fix: #(6302)

Does this PR introduce any user-facing change?

N/A

How was this patch tested?

N/A

@sunxiaojian sunxiaojian force-pushed the extract-flink-converter-logic branch from aecdd3a to 03c0d52 Compare January 16, 2025 16:14
@sunxiaojian
Copy link
Contributor Author

sunxiaojian commented Jan 16, 2025

fixed ci error : #6305

@sunxiaojian sunxiaojian force-pushed the extract-flink-converter-logic branch from 03c0d52 to 97bc2a7 Compare January 17, 2025 02:27
@sunxiaojian
Copy link
Contributor Author

@FANNG1 PTAL , thanks

@sunxiaojian sunxiaojian force-pushed the extract-flink-converter-logic branch 3 times, most recently from f576a21 to 92d0edb Compare January 21, 2025 02:48
@sunxiaojian
Copy link
Contributor Author

@FANNG1 Fixed all , PTAL again, thanks

@sunxiaojian sunxiaojian force-pushed the extract-flink-converter-logic branch from 9668495 to dbeb10b Compare January 22, 2025 01:55
@sunxiaojian sunxiaojian force-pushed the extract-flink-converter-logic branch from dbeb10b to 364591c Compare January 22, 2025 02:17
@@ -50,7 +52,11 @@ void testCatalogPropertiesWithHiveBackend() {
IcebergPropertiesConstants.ICEBERG_CATALOG_URI,
"hive-uri",
IcebergPropertiesConstants.ICEBERG_CATALOG_WAREHOUSE,
"hive-warehouse"),
"hive-warehouse",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

key1 and value1 should not exists in the result. By design only the keys defined by Graviitno like catalog-backend or start with flink.bypass. are passed to the underlying flink connector. the other property keys are dropped

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The current unified logic is to automatically add a prefix to parameters that have not been mapped and have not been added with "Flink. bypass." before passing them to Gravitino. When setting them, there is no mandatory restriction that they must include "Flink. bypass, This is also for compatibility with old logic, but what you said is also reasonable. Let me unify it first

@@ -65,7 +71,7 @@ void testCatalogPropertiesWithRestBackend() {
"rest-uri",
IcebergPropertiesConstants.GRAVITINO_ICEBERG_CATALOG_WAREHOUSE,
"rest-warehouse",
"key1",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you use key1 and flink.bypass.key2 too?

@FANNG1
Copy link
Contributor

FANNG1 commented Jan 22, 2025

LGTM except minor comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Improvement] Optimize Flink connector properties converter
2 participants